package com.skyline.base.model;

import java.io.Serializable;
import java.util.Date;
import com.skyline.base.type.Activity;
import com.skyline.common.util.CommonUtils;


/**
 * Resource为所有资料的基础类(包括文章，分类，相册，照片等)
 * 
 * @author Jairus Chan
 * @version 0.1
 * */
public class Resource implements Serializable {

	private static final long serialVersionUID = 3626297332172035827L;
	protected Long id;
	protected Integer authority;
	protected Long ownerId;
	protected String ownerPortrait;
	protected String ownerNickname;
	protected Date createTime;
	protected Date updateTime;
	protected Integer commentNum;
	protected Integer visitNum;
	protected Integer shareNum;
	protected Activity activity;
	protected Integer up;
	protected Integer down;

	public Integer getShareNum() {
		return shareNum;
	}

	public void setShareNum(Integer shareNum) {
		this.shareNum = shareNum;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getAuthority() {
		return authority;
	}

	public void setAuthority(Integer authority) {
		this.authority = authority;
	}

	public Long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Long ownerId) {
		this.ownerId = ownerId;
	}

	public String getOwnerPortrait() {
		return ownerPortrait;
	}

	public void setOwnerPortrait(String ownerPortrait) {
		this.ownerPortrait = ownerPortrait;
	}

	public String getOwnerNickname() {
		return ownerNickname;
	}

	public void setOwnerNickname(String ownerNickname) {
		this.ownerNickname = ownerNickname;
	}

	public Date getCreateTime() {
		return CommonUtils.cloneDate(createTime);
	}

	public void setCreateTime(Date createTime) {
		this.createTime = CommonUtils.cloneDate(createTime);
	}

	public Date getUpdateTime() {
		return CommonUtils.cloneDate(updateTime);
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = CommonUtils.cloneDate(updateTime);
	}

	public Activity getActivity() {
		return activity;
	}

	public void setActivity(Activity activity) {
		this.activity = activity;
	}

	public Integer getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}

	public Integer getUp() {
		return up;
	}

	public void setUp(Integer up) {
		this.up = up;
	}

	public Integer getDown() {
		return down;
	}

	public void setDown(Integer down) {
		this.down = down;
	}

	public Integer getVisitNum() {
		return visitNum;
	}

	public void setVisitNum(Integer visitNum) {
		this.visitNum = visitNum;
	}

}
